{extend name='admin@main'}

{block name="button"}



{/block}

{block name="content"}
<div class="think-box-shadow">
    <table class="layui-table margin-top-10" lay-skin="line">
        {notempty name='list'}
        <thead>
        <tr>          
            <th class='text-left nowrap'>设置项</th> 
            <th class='text-left nowrap'>设置值</th>
            <th class='text-left nowrap'>单位</th>
            <th class="text-left">备注信息</th>
            <th class="text-left">修改时间</th>
            <th></th>
        </tr>
        </thead>
        {/notempty}
        <tbody>
        {foreach $list as $key=>$vo}
        <tr data-dbclick>
            <td class='text-left nowrap'>{$vo.name_cn|default=''}</td>  
            <td class='text-left nowrap'>{$vo.value|default=''}</td>
            <td class='text-left nowrap'>{$vo.unit|default=''}</td>
            <td class='text-left nowrap'>
                {$vo.desc|default=''}
            </td>
           <td class='text-left nowrap'>
                	日期：{$vo.update_at|format_datetime|str_replace=' ','<br><span class="color-desc">时间：',###|raw}</span>
            </td>
            <td class='text-left nowrap'>
                {if auth("admin/setup.customerconfig/edit")}
                <a data-dbclick data-title="编辑设置" class="layui-btn layui-btn-sm" data-modal='{:url("edit")}?id={$vo.id}'>编 辑</a>
                {/if}
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
{/block}
